Skip to content

Clean up unit-tests - use local registry [2.x] - #2282

Merged
bajtos merged 4 commits into
2.xfrom
feature/remove-auto-attach-2.x
May 3, 2016
Merged

Clean up unit-tests - use local registry [2.x]#2282
bajtos merged 4 commits into
2.xfrom
feature/remove-auto-attach-2.x

Conversation

@bajtos

@bajtos bajtos commented May 3, 2016

Copy link
Copy Markdown
Member

This is a back-port of #1989 minus the breaking change which removed autoAttach.

Connect to #294

bajtos added 4 commits May 3, 2016 14:39
Rework User tests to not depend on `app.autoAttach()` and global shared
registry of Models. Instead, each tests creates a fresh app instance
with a new in-memory datasource and a new set of Models.
Rework tests in `test/rest.middleware.test.js` to not depend
on `app.autoAttach()` and global shared registry of Models. Instead,
each tests creates a fresh app instance with a new in-memory datasource
and a new set of Models.
@bajtos bajtos added the #review label May 3, 2016
@bajtos bajtos changed the title Clean up unit-tests - use local registry Clean up unit-tests - use local registry [2.x] May 3, 2016
@bajtos
bajtos merged commit c2ad201 into 2.x May 3, 2016
@bajtos
bajtos deleted the feature/remove-auto-attach-2.x branch May 3, 2016 14:10
@bajtos bajtos removed the #review label May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant